PID=$(lsof -i :8011 -t)  
  
# 如果找到进程ID，则强制杀死该进程  
if [ -n "$PID" ]; then  
    echo "Killing process with PID: $PID"  
    kill -9 $PID  
    sleep 2 # 等待进程被杀死  
fi  
  
chmod +x main
nohup ./main > /dev/null 2>&1 &
  
